package com.ocean.littermanagement.config;


import net.neoforged.neoforge.common.ModConfigSpec;

/**
 * 配置文件
 *
 * @author zhang
 * @since 2021/11/21
 */
public class ApplicationConfig {

    public static final ModConfigSpec.Builder BUILDER = new ModConfigSpec.Builder();

    public static final ModConfigSpec SPEC;

    /**
     * 清理垃圾需要发送的消息
     */
    public static final ModConfigSpec.ConfigValue<String> MESSAGE;

    /**
     * 清理间隔（分钟）
     */
    public static final ModConfigSpec.ConfigValue<Integer> TIMER;


    static {
        BUILDER.push("Config for LitterManagement !");

        MESSAGE = BUILDER.comment("清理时发送的消息").define("MESSAGE", "§d将在%s分钟后清理掉落物！");
        TIMER = BUILDER.comment("清理间隔（分钟）").define("TIMER", 10);

        SPEC = BUILDER.build();
    }
}